###
 # @Author: 哈兰德
 # @Description: 容器entryport启动脚本
### 
#!/bin/sh

/usr/sbin/sshd
echo "=======start the sshd service==========" 
echo $ENV 

if [ $ENV = "stg1" ]  
then  
    mv /home/q/yita/config/stg1.js /home/q/yita/config/default/index.js
elif [ $ENV = "stg2" ]
then
    mv /home/q/yita/config/stg2.js /home/q/yita/config/default/index.js
elif [ $ENV = "stg3" ]
then
    mv /home/q/yita/config/stg3.js /home/q/yita/config/default/index.js
elif [ $ENV = "PRO" ]
then
    mv /home/q/yita/config/pro.js /home/q/yita/config/default/index.js
fi

echo "=======npm run build==========" 
npm run build
echo "=======npm run start==========" 
npm run start



